package io.renren.common.utils;

import org.junit.Test;

import java.util.HashSet;
import java.util.Random;
import java.util.Set;

public class RandomUtils {
    // 生成9位数的 字母 大小随机 当做授权码
    public static String randomUtil() {
        Random r = new Random();
        StringBuilder code = new StringBuilder();
        for (int i = 0; i < 9; ++i) {
            int temp = r.nextInt(10);
            code.append(temp);
        }
        return code.toString();
    }
}
